package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同对象 contract
 *
 * @author ruoyi
 * @date 2022-04-05
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 总院编号 */
    @Excel(name = "总院编号")
    private String instituteNum;

    /** 分院编号 */
    @Excel(name = "分院编号")
    private String branchNum;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String name;

    /** 业主 */
    @Excel(name = "业主")
    private String owner;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 地区 */
    @Excel(name = "地区")
    private String zone;

    /** 签订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签订时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signTime;

    /** 合同额 */
    @Excel(name = "合同额")
    private Double money;

    /** 管理费 */
    @Excel(name = "管理费")
    private Double managerCost;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Double payMoney;

    /** 到款额 */
    @Excel(name = "到款额")
    private Double toMoney;

    /** 项目执行情况 */
    @Excel(name = "项目执行情况")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setInstituteNum(String instituteNum)
    {
        this.instituteNum = instituteNum;
    }

    public String getInstituteNum()
    {
        return instituteNum;
    }
    public void setBranchNum(String branchNum)
    {
        this.branchNum = branchNum;
    }

    public String getBranchNum()
    {
        return branchNum;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setOwner(String owner)
    {
        this.owner = owner;
    }

    public String getOwner()
    {
        return owner;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setZone(String zone)
    {
        this.zone = zone;
    }

    public String getZone()
    {
        return zone;
    }
    public void setSignTime(Date signTime)
    {
        this.signTime = signTime;
    }

    public Date getSignTime()
    {
        return signTime;
    }
    public void setMoney(Double money)
    {
        this.money = money;
    }

    public Double getMoney()
    {
        return money;
    }
    public void setManagerCost(Double managerCost)
    {
        this.managerCost = managerCost;
    }

    public Double getManagerCost()
    {
        return managerCost;
    }
    public void setPayMoney(Double payMoney)
    {
        this.payMoney = payMoney;
    }

    public Double getPayMoney()
    {
        return payMoney;
    }
    public void setToMoney(Double toMoney)
    {
        this.toMoney = toMoney;
    }

    public Double getToMoney()
    {
        return toMoney;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("instituteNum", getInstituteNum())
                .append("branchNum", getBranchNum())
                .append("name", getName())
                .append("owner", getOwner())
                .append("province", getProvince())
                .append("zone", getZone())
                .append("signTime", getSignTime())
                .append("money", getMoney())
                .append("managerCost", getManagerCost())
                .append("payMoney", getPayMoney())
                .append("toMoney", getToMoney())
                .append("status", getStatus())
                .toString();
    }
}